package javabean;

public class Student {
    String name;
    private double score;


    //自动生成 getset 方法
   // Generate getter and setter 选中所有 点击ok 即可生成

    //2`必须为类提供一个公开的无参数构造器
    //有参数构造器生成啦
    public Student(String name, double score) {
        this.name = name;
        this.score = score;
    }
   //自动生成的无参数构造器 Generate constructor slectnone
    public Student() {
    }

    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }


}
